package com.may.provider.service;

import com.may.provider.api.ProviderHelloServiceApi;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;

@Slf4j
@DubboService//用了这个注解，就不需要 @Service 了，本地一样可以注入
public class ProviderHelloService implements ProviderHelloServiceApi {

    @Override
    public String hello(String msg) {
        log.info("provider 接收到参数：[{}]",msg);
        return String.format("provider message ：[%s]",msg);
    }
}
